package com.example.springboot_jdk8.gjgw;

import lombok.Data;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Data

public class HrOrgData {
    private String masterStatus;

    private String deptType;

    private String oldMainkey;

    private String oldPrimarykey;

    private String mainkey;

    private String orgNo;


    private String orgShortName;


    private String orgName;

    private String parentOrgName;


    private String parentOrgCode;


    private String oldParentMainkey;

    private String oldParentPrimarykey;


    private String parentMainkey;


    private LocalDateTime crateDateTime;


    private LocalDateTime updateDateTime;

    /**
     * 组织唯一id全路径
     */
    private String orgMainkeyPath;

    /**
     * 组织名称全路径
     */
    private String orgNamePath;


    private List<HrOrgData> children = new ArrayList<>();

    public void addChilds(List<HrOrgData> children) {
        this.children.addAll(children);
    }

    public void addChild(HrOrgData children) {
        this.children.add(children);
    }
}
